package com.initial.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.initial.entity.TbCrmBusiness;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.initial.entity.TbCrmCustomer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 余小年
* @description 针对表【tb_crm_business】的数据库操作Mapper
* @createDate 2021-12-14 17:22:00
* @Entity com.initial.entity.TbCrmBusiness
*/
public interface TbCrmBusinessMapper extends BaseMapper<TbCrmBusiness> {

    IPage selectBusiness(@Param("custname") String custname, @Param("name") String name, @Param("origin") String origin, @Param("nextstep") String nextstep , Page page);

    TbCrmBusiness selectById(Integer id);

    List<TbCrmBusiness> selectAll();

    //本日、本周、本月新建
    IPage<TbCrmBusiness> createTimes(@Param("types") String types, Page<TbCrmBusiness> page);

    //查询商机名字
    List<TbCrmBusiness> selectName();

}




